﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace common.Entity
{
    public class stockHistory
    {
        /// <summary>
        /// 日线文件信息
        /// </summary>
        public enum DAY_COL_INFO
        {
            // 日期
            TRADEDATE = 0,
            // 开盘
            OPENPRICE,
            // 最高
            HIGHPRICE,
            // 最低
            LOWPRICE,
            // 收盘
            CLOSEPRICE,
            // 未知1
            UNKNOWN1,
            // 交易量(股)
            TRADEVOLUME,
            // 昨收盘
            PREVCLOSEPRICE
        }

        /// <summary>
        /// 数据类型
        /// </summary>
        public enum DATA_TYPE
        {
            // 日线数据
            LDAY,
            //
            EDAY,
            // 分钟线
            FZLINE
        }

        // Stock编号
        private string _stockNo;
        public string StockNo
        {
            get { return _stockNo; }
            set { _stockNo = value; }
        }

        // 日期
        private DateTime _tradeDate;
        public DateTime TradeDate
        {
            get { return _tradeDate; }
            set { _tradeDate = value; }
        }

        // 开盘
        private decimal _openPrice;
        public decimal OpenPrice
        {
            get { return _openPrice; }
            set { _openPrice = value; }
        }

        // 最高
        private decimal _highPrice;
        public decimal HighPrice
        {
            get { return _highPrice; }
            set { _highPrice = value; }
        }

        // 最低
        private decimal _lowPrice;
        public decimal LowPrice
        {
            get { return _lowPrice; }
            set { _lowPrice = value; }
        }

        // 收盘
        private decimal _closePrice;
        public decimal ClosePrice
        {
            get { return _closePrice; }
            set { _closePrice = value; }
        }

        // 交易量(股)
        private decimal _tradeVolume;
        public decimal TradeVolume
        {
            get { return _tradeVolume; }
            set { _tradeVolume = value; }
        }

        // 数据类型
        private DATA_TYPE _dataType;
        public DATA_TYPE DataType
        {
            get { return _dataType; }
            set { _dataType = value; }
        }
    }
}
